Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial AI exploration for the backend of the applications #50

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

antoinebou12
Copy link

This pull request includes several changes to the data files and a new Jupyter notebook. The most important changes include the addition of new program entries in Program.csv, new program types in ProgramType.csv, and the creation of an empty Jupyter notebook file.

Updates to data files:

  • notebook/data/Program.csv: Added multiple new program entries with details such as code, credits, title, URL, cycle, and ID.
  • notebook/data/ProgramType.csv: Added new program types including Maîtrise with project, Microprogramme, Maîtrise with mémoire, Concentration in technologies of health, Doctorat, Programme court, Certificat, DESS, Cheminement universitaire en technologie (CUT), and Baccalauréat.

New Jupyter notebook:

  • notebook/gnn.ipynb: Created a new empty Jupyter notebook with Python as the specified language.

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

notebook/knn.ipynb Fixed Show fixed Hide fixed
notebook/knn.ipynb Fixed Show fixed Hide fixed
notebook/knn.ipynb Fixed Show fixed Hide fixed
def evaluate_clustering(embeddings, n_clusters=5):
kmeans = KMeans(n_clusters=n_clusters, random_state=42)
labels = kmeans.fit_predict(embeddings)
silhouette_avg = silhouette_score(embeddings, labels)

Check notice

Code scanning / SonarCloud

Results that depend on random number generation should be reproducible Low

Provide a seed for the random\_state parameter. See more on SonarQube Cloud

def visualize_embeddings(embeddings, labels, method='PCA'):
if method == 'PCA':
reducer = PCA(n_components=2)

Check notice

Code scanning / SonarCloud

Results that depend on random number generation should be reproducible Low

Provide a seed for the random\_state parameter. See more on SonarQube Cloud
if method == 'PCA':
reducer = PCA(n_components=2)
elif method == 't-SNE':
reducer = TSNE(n_components=2, perplexity=30, n_iter=1000)

Check notice

Code scanning / SonarCloud

Results that depend on random number generation should be reproducible Low

Provide a seed for the random\_state parameter. See more on SonarQube Cloud
Copy link

sonarqubecloud bot commented Dec 5, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE


# Choose dimensionality reduction method
if method == 'PCA':
reducer = PCA(n_components=2)

Check notice

Code scanning / SonarCloud

Results that depend on random number generation should be reproducible Low

Provide a seed for the random\_state parameter. See more on SonarQube Cloud
if method == 'PCA':
reducer = PCA(n_components=2)
elif method == 't-SNE':
reducer = TSNE(n_components=2, perplexity=30, n_iter=1000)

Check notice

Code scanning / SonarCloud

Results that depend on random number generation should be reproducible Low

Provide a seed for the random\_state parameter. See more on SonarQube Cloud

# Choose dimensionality reduction method
if method == 'PCA':
reducer = PCA(n_components=2)

Check notice

Code scanning / SonarCloud

Results that depend on random number generation should be reproducible Low

Provide a seed for the random\_state parameter. See more on SonarQube Cloud
if method == 'PCA':
reducer = PCA(n_components=2)
elif method == 't-SNE':
reducer = TSNE(n_components=2, perplexity=30, n_iter=1000)

Check notice

Code scanning / SonarCloud

Results that depend on random number generation should be reproducible Low

Provide a seed for the random\_state parameter. See more on SonarQube Cloud
Copy link

@XavierPaquet-Rapold XavierPaquet-Rapold left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to talk about security concerns and understand the plan for the use of AI before merging

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants